package com.aididi.socket.controller;

import com.aididi.service.SysAuthService;
import com.aididi.utils.ResponseUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zx.xu
 * @Description:
 */
@RestController
@RequestMapping("/menu")
public class AuthController {

    @Autowired
    private SysAuthService sysAuthService;

    @GetMapping("nav")
    public ResponseUtils getMenuAll(){
        return ResponseUtils.success(sysAuthService.getAuthList());
    }

}
